<?php

  if (isset($_COOKIE['textadmin'])) { // Check for cookie
      $word = $_COOKIE['textadmin']; // Variable set as cookie
    }
    else
    {
    header('Location: index.php');
    }

 ?>
